package exam.service.impl;

import exam.bean.UtilFiles;
import exam.dao.UtilFileDao;
import exam.service.IUtilFilesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class UtilFilesServiceImpl implements IUtilFilesService {
    @Autowired
    UtilFileDao utilFileDao;

    @Override
    public int insertInfo(UtilFiles utilFiles) {
        return utilFileDao.insertInfo(utilFiles);
    }

    @Override
    public int deleteInfo(Integer id,Integer utilType,Integer dataId)
    {
        return utilFileDao.deleteInfo(id,utilType,dataId);
    }

    @Override
    public List<UtilFiles> selectInfo(Map<String, Object> map) {
        return utilFileDao.selectInfo(map);
    }
}
